package com.zzc.controller;

import com.zzc.serviceImpl.UserServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Autowired
    UserServiceImp userServiceImp;

    @PostMapping("/login/{userId}/{pwd}")
    public String login(@PathVariable("userId") String userId,@PathVariable("pwd") String pwd){
        return userServiceImp.loginAuthentication(userId,pwd);
    }

}
